package net.adetech.crj.service;

import net.adetech.crj.dao.DDMapper;
import net.adetech.crj.entity.DD;
import net.adetech.crj.bean.Option;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DDService {
    @Autowired
    DDMapper ddMapper;

    public List<DD> getDDListByDDNo(String ddNo)
    {
        return ddMapper.getDDListByDDNo(ddNo);
    }

    public List<DD> getDDListByDDName(String ddName)
    {
        return ddMapper.getDDListByDDName(ddName);
    }
    public List<Option> getOptionListByDDName(String ddName)
    {
        return ddMapper.getOptionListByDDName(ddName);
    }
}
